package gmu.swe.project.query;

import java.io.Serializable;

/**
 * Representation of one result to a query.  Returned to the requesting Peer as part of a set.
 * 
 * @author Christina Bradbury
 *
 */
public class QueryResult implements Serializable {

	private String peer;
	private Integer port;
	private Integer workload;
	private String fileName;
	
	public QueryResult(String peer, Integer port, Integer workload, String fileName) {
		this.peer = peer;
		this.port = port;
		this.workload = workload;
		this.fileName = fileName;
	}
	public QueryResult() {
		super();
		// TODO Auto-generated constructor stub
	}
	/** Accessors **/
	public String getPeer() {
		return peer;
	}
	public void setPeer(String peer) {
		this.peer = peer;
	}
	public Integer getWorkload() {
		return workload;
	}
	public void setWorkload(Integer workload) {
		this.workload = workload;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public Integer getPort() {
		return port;
	}
	public void setPort(Integer port) {
		this.port = port;
	}
}
